/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Popcorn
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2021/12/28 16:21
 * @version: 1.0
 */
public class Popcorn {

    private static Popcorn instance = new Popcorn();

    public static Popcorn getInstance() {
        return instance;
    }

    public void on(){
        System.out.println("Popcorn on!");
    }

    public void  off(){
        System.out.println("Popcorn off!");
    }

    public void pop(){
        System.out.println("Popcorn is poping");
    }
}
